package com.xingxuecn.demos.service;

import com.xingxuecn.demos.annotation.NeedEncry;

import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Kris at 2018/9/26 14:47
 */
@Service
public class OrderService {

    public void saveOrder(){
        System.out.println("保存订单。。。");
    }

    @NeedEncry
    public Map<String,Object> loadOrder(String orderId){
        System.out.println("加载订单...");
        HashMap<String, Object> map = new HashMap<String, Object>();
        map.put("id","SF12303436");
        return map;
    }
}
